package com.rm.zeyou.service;

import com.rm.zeyou.entity.Technician;
import com.rm.zeyou.entity.User;
import com.rm.zeyou.entity.UserInvite;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rm.zeyou.response.ApiRestResponse;
import com.rm.zeyou.vo.response.SelectUserInviteTechnicianResponseVo;
import com.rm.zeyou.vo.response.SelectUserInviteUserResponseVo;

import java.io.IOException;
import java.util.Map;

/**
 * <p>
 * 用户邀请表 服务类
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 17:23:41
 */
public interface UserInviteService extends IService<UserInvite> {
    ApiRestResponse<SelectUserInviteUserResponseVo> selectUserInviteUser(Long userId);

    ApiRestResponse<SelectUserInviteTechnicianResponseVo> selectUserInviteTechnician(Long userId);

    ApiRestResponse<Map<String, String>> inviteUser(User user,Integer type) throws Exception;

    ApiRestResponse<Map<String, String>> inviteTechnician(Technician technician, Integer type) throws IOException;
}
